package com.zlop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nyvi.support.base.service.impl.BaseServiceImpl;
import com.zlop.dao.SysAccountDAO;
import com.zlop.model.SysAccountDO;
import com.zlop.service.SysAccountService;

/**
 * 系统账户表Service实现
 * 
 * @author	曾令鹏
 * @since	1.0
 * @version 2018年5月8日 曾令鹏
 */
@Service
public class SysAccountServiceImpl extends BaseServiceImpl<SysAccountDO> implements SysAccountService {
	
	/** 系统账户表DAO实现 */
	@Autowired
	private SysAccountDAO sysAccountDAO;
	
	/**
	 * 通过账户获取记录
	 * 
	 * @param account 账号
	 * @return 查询成功返回对应记录。反之，返回null
	 */
	@Override
	public SysAccountDO getEntity(String account) {
		return sysAccountDAO.getEntity(account);
	}

}
